﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Oracle.DataAccess.Client;
using ERP.Source.DBBridge;

namespace ERP.Source.Core
{
    public class UserDetail
    {
        private string name;
        private string birthDay;

        public string Name
        {
            set
            {
                name = value;
            }
            get
            {
                return name;
            }
        }

        public string BirthDay
        {
            set
            {
                birthDay = value;
            }
            get
            {
                return birthDay;
            }
        }

        public void SetUserDetail(User user)
        {
            try
            {
                string strsql = "Select * from USERS where USERNAME = '" + user.Username + "'";

                OracleCommand oc = new OracleCommand(strsql, Database.Conn);
                OracleDataReader odr = oc.ExecuteReader();
                if (odr.Read())
                {
                    //thuc hien thay doi gia tri userDetail
                }
            }

            catch (Exception ex)
            {
            }
        }
    }
}
